<?php
// +----------------------------------------------------------------------
// | Author: Sam
// +----------------------------------------------------------------------
namespace plugins\article_keywords;
use cmf\lib\Plugin;
use think\Db;
class ArticleKeywordsPlugin extends Plugin
{
    public $info = [
        'name'        => 'ArticleKeywords',
        'title'       => '关键词标签',
        'description' => '文章关键词标签编辑器',
        'status'      => 1,
        'author'      => 'Sam',
        'version'     => '1.0',
        'demo_url'    => '',
        'author_url'  => ''
    ];

    public $hasAdmin = 0;//插件是否有后台管理界面
    // 插件安装
    public function install()
    {
		return true; //安装成功返回true，失败false
    }
    // 插件卸载
    public function uninstall()
    {
        return true; //卸载成功返回true，失败false
    }
    public function portalAdminArticleEditViewRightSidebar()
    {
		global $configinfo;
		
		// 是否开启Tag标签
		if(empty($configbase['tagok']))
		{
			return;
		}
		
		$this->assign('tagmoduleid', $configinfo['moduleid']);
		echo $this->fetch('widget');
    }

}